package android.video.online.ui.mystudy;

import android.video.online.R;
import android.video.online.manager.UserManager;
import android.video.online.ui.BasicFragment;
import android.widget.TextView;

/**
 * Created by Jay on 2017/8/13.
 */

public class MyStudyFragment extends BasicFragment {
    private TextView mTvDisplayName;
    @Override
    public int setLayoutId() {
        return R.layout.fragment_mystudy;
    }

    @Override
    public void init() {
        initView();
    }

    private void initView() {
        mTvDisplayName = (TextView) parentLayout.findViewById(R.id.tv_user_display_name);
        if(UserManager.getInstance().getUserModel() != null){
            mTvDisplayName.setText(UserManager.getInstance().getUserModel().getUsername());
        } else {
            mTvDisplayName.setText("请完美个人资料");
        }
    }
}
